import Axios from '../../lib/request'

//获取代理所有数据
export const delegeteList = function () {
    return Axios.get('/level/getDicLevel')
}
//代理设置删除
export const deleAgent = function (id) {
    return Axios.delete(`/level/delete/?id=${id}`)
}
//代理设置修改
export const updateAgency = function (data) {
    return Axios.put('/level/updateLevelDic', data)
}
//代理设置新增
export const addAgency = function (data) {
    return Axios.post('/level/addDicLevel', data)
}

//服务信息列表(不分页)
export const getServiceList = function () {
    return Axios.get('/dicAfterservice/list')
}
//服务信息添加
export const addService = function (data) {
    return Axios.post('/dicAfterservice/insert', data)
}
//服务信息修改
export const updateService = function (data) {
    return Axios.put('/dicAfterservice/update', data)
}
//服务信息删除
export const deleteService = function (id) {
    return Axios.delete(`/dicAfterservice/delete?id=${id}`)
}

//新增门店
export const addStore = function (data) {
    return Axios.post('/store/add', data)
}
//修改门店
export const updateStore = function (data) {
    return Axios.post('/store/update', data)
}
//查询下线门店
export const getStoreList = function (data) {
    return Axios.post('/store/list',data)
}
//删除门店
export const deleteStore = function (id) {
    return Axios.get(`/store/delete/${id}`)
}

//修改钻石数
export const updateDiamond = function (data) {
    return Axios.put('/sing/update', data)
}

//是否开启签到
export const updateIsSignStatus = function (data) {
   return Axios.put('/sing/updateStatus', data) 
}

//获取海报列表
export const getPosterList = function (data) {
    return Axios.post('/picLibrary/list', data)
}

//获取签到钻石列表
export const getSignInList = function () {
    return Axios.get('/sing/selectall')
}


//添加海报
export const addPoster = function (data) {
    return Axios.post('/picLibrary/addPic', data)
}
//删除海报
export const deletePoster = function (data) {
    return Axios.delete('/picLibrary/delete', { params: data })
}

//获取积分设置详情
export const recordrulesSelectAll = function () {
    return Axios.get('/recordrules/selectAll')
}

//修改积分设置
export const recordrulesUpdate = function (data) {
    return Axios.post('/recordrules/update', data)
}

//热销商品
export const tbSpuSelectIsHot = function () {
    return Axios.get('/tbSpu/selectIsHot')
}
//修改热销商品
export const tbSpuUpdateIsHot = function (data) {
    return Axios.post('/tbSpu/updateIsHot', data)
}

//提现
export const minimumMoney = function () {
    return Axios.get('/withdrawalapplication/minimumMoney')
}
//修改提现
export const updateMoney = function (data) {
    return Axios.get(`/withdrawalapplication/updateMoney?money=${data}`)
}
//抽奖积分设置
export const updateSettinginterGralll = function (data) {
    return Axios.get(`/lotteryTurntable/updateSetting?interGralll=${data}`)
}
//抽奖积分
export const lotteryTurntableSelectSetting = function () {
    return Axios.get(`/lotteryTurntable/selectSetting`)
}
//会员设置
export const membershipLevelDicGetLevelList = function (data) {
    return Axios.post('/membershipLevelDic/getLevelList', data)
}
//会员删除、修改
export const membershipLevelCustomerUpdateMember = function (data) {
    return Axios.post('/membershipLevelDic/updateMember', data)
}
//新增会员
export const membershipLevelDicInsterLevel = function (data) {
    return Axios.post('/membershipLevelDic/insterLevel', data)
}
